import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Addbooks from '@/components/Addbooks'
import Addcate from '@/components/Addcate'
import Cate from '@/components/Cate'
import Detaisl from '@/components/Detaisl'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/addbooks',
      name: 'Addbooks',
      component: Addbooks
    },
    {
      path: '/addcate',
      name: 'Addcate',
      component: Addcate
    },
    {
      path: '/cate',
      name: 'Cate',
      component: Cate
    },
    {
      path: '/del',
      name: 'Detaisl',
      component: Detaisl
    },
  ]
})
